<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:jsf="http://xmlns.jcp.org/jsf"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	template="/WEB-INF/templates/template.xhtml"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="content">

		<h:form>

			<div align="center" style="padding-top:150px;">
			<p:growl id="growl" showDetail="true"/>
				
				<p:panel id="panelcadastrofunc" header="Cadastro de Funcionários" style="width:400px;">
					
					<p:panelGrid columns="2" id="panelgridcadastro">
						<p:outputLabel id="lblloginfunc" for="login" value="Login:"/>
						<p:inputText id="login" required="true" value="#{funcBean.login}" label="Campo Login" 
							requiredMessage="Preencher o campo ID" size="20" style="text-transform:lowercase"/>
					
						<p:outputLabel id="lblsenhafunc" for="senha" value="Senha:"/>
						<p:inputText id="senha" required="true" value="#{funcBean.senha}" label="Campo Senha"
						 	requiredMessage="Preencher o campo Senha" size="20" style="text-transform:lowercase"/>
					</p:panelGrid>
					<br></br>
					<p:commandButton value="Salvar" action="#{funcBean.cadastrar}" update="growl"/>
				</p:panel>
				
					
			</div>

		</h:form>

	</ui:define>
</ui:composition>
